package b3.widget.guide
{
	import b3.util.*;
	import b3.widget.*;
	import b3.widget.basic.*;
	
	import flash.display.*;
	import flash.events.*;

	public class BuildingGuide extends BasicWidget
	{
		private var currentTip:String;
		
		public function BuildingGuide()
		{
			super();
		}
		
		protected function clearAll():void
		{
			for (var i:int = numChildren - 1; i >= 0; i--)
			{
				removeChildAt(i);
			}
			currentTip = null;
		}
		
		protected function showTipDialog(tip:String):void
		{
			if (tip != currentTip)
			{
				clearAll();
				var tipDialog:TipDialog = new TipDialog(tip);
				addChild(tipDialog);
				currentTip = tip;
			}
		}
		
		virtual public function step1():void
		{
		}
	}
}